package main

import "fmt"

// @author lxb
// @date 2022-01-24

func main() {
	pizza := &VeggieMania{}

	pizzaWithCheese := &CheeseTopping{pizza: pizza}

	pizzaWithCheeseAndTomato := &TomatoTopping{pizza: pizzaWithCheese}

	fmt.Printf("素食狂热套餐 + 薯条 + 起司， 共%d元\n", pizzaWithCheeseAndTomato.getPrice())
}
